from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'users', views.CustomUserViewSet)
router.register(r'user-groups', views.UserGroupViewSet)
router.register(r'roles', views.RoleViewSet)
router.register(r'menus', views.MenuViewSet)
router.register(r'menu-permissions', views.MenuPermissionViewSet)
router.register(r'login-history', views.LoginHistoryViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('current-user/', views.current_user_info, name='current-user-info'),
]
